﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="PermDoc.App"
             >
    
    <!--<Application.Resources>
        <Storyboard x:Key="OnLoaded1">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Window" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Application.Resources>-->

    <Application.Resources>

        <SolidColorBrush x:Key="ControlPanelColor" Color="Sienna"/>

        <Style x:Key="ControlPanel" TargetType="Border">
            <Style.Setters>
                <Setter Property="Grid.Row" Value="0"/>
                <Setter Property="CornerRadius" Value="150,150,0,0"/>
                <Setter Property="Margin" Value="5,0,5,0"/>
                <Setter Property="Padding" Value="10,5,10,5"/>
                <Setter Property="BorderBrush" Value="{StaticResource ControlPanelColor}"/>
                <Setter Property="BorderThickness" Value="2,3,2,1"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="Background">
                    <Setter.Value>
                        <RadialGradientBrush GradientOrigin="0.38,0.12" Center="0.6,1" RadiusX="1" RadiusY="1.1">
                            <GradientStopCollection>
                                <GradientStop Color="Sienna" Offset="0.5" />
                                <GradientStop Color="orange" Offset="0.1" />
                            </GradientStopCollection>
                        </RadialGradientBrush>
                    </Setter.Value>
                </Setter>
            </Style.Setters>
        </Style>

        <Style x:Key="ControlPanelGroup" TargetType="Border">
            <Style.Setters>
                <Setter Property="BorderThickness" Value="1,1,1,0"/>
                <Setter Property="BorderBrush" Value="{StaticResource ControlPanelColor}"/>
                <Setter Property="CornerRadius" Value="80,80,15,15"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="Padding" Value="25,5,25,5"/>
            </Style.Setters>
        </Style>

        <Style x:Key="RadioButtonPlain" TargetType="RadioButton">
            <Style.Setters>
                <Setter Property="Margin" Value="10,2,20,0"/>
                <Setter Property="FontSize" Value="14"/>
            </Style.Setters>
        </Style>

        <!--
        Create the open space & horizon.
        -->
        <LinearGradientBrush x:Key="AppBackground"  StartPoint="0,0" EndPoint="0,1">
            <GradientStopCollection>
                <GradientStop Color="black" Offset="0.1"/>
                <GradientStop Color="Silver" Offset="0.55"/>
                <GradientStop Color="#222" Offset="0.60"/>
            </GradientStopCollection>
        </LinearGradientBrush>


        <!--
        Create "floor"
        -->
        <Style x:Key="Floor" TargetType="Border">
            <Style.Setters>
                <Setter Property="BorderBrush" Value="SlateGray" />
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="Grid.RowSpan" Value="3"/>
                <Setter Property="RenderTransform">
                    <Setter.Value>
                        <ScaleTransform ScaleY="1.1" CenterY="1600"/>
                    </Setter.Value>
                </Setter>
                <Setter Property="Background" >
                    <Setter.Value>
                        <ImageBrush ImageSource="http://sp.korablik.local/images/download.jpg"/>
                    </Setter.Value>
                </Setter>
                <Setter Property="Projection">
                    <Setter.Value>
                        <PlaneProjection RotationX="-88" CenterOfRotationY="1"/>
                    </Setter.Value>
                </Setter>
            </Style.Setters>
        </Style>

        <Style x:Key="Frame" TargetType="Border">
            <Style.Setters>
                <Setter Property="IsHitTestVisible" Value="True"/>
                <Setter Property="Background" Value="#0FFF"/>
                <Setter Property="Padding" Value="4"/>
                <Setter Property="BorderBrush" Value="Silver"/>
                <Setter Property="BorderThickness" Value="8"/>
                <Setter Property="Width" Value="550"/>
                <Setter Property="Height" Value="600"/>
                <Setter Property="RenderTransform">
                    <Setter.Value>
                        <ScaleTransform ScaleX="0.85" CenterX="380" ScaleY="0.9" CenterY="380.0"/>
                    </Setter.Value>
                </Setter>
                <Setter Property="Projection">
                    <Setter.Value>
                        <PlaneProjection RotationX="5" RotationY="5"/>
                    </Setter.Value>
                </Setter>
            </Style.Setters>
        </Style>

    </Application.Resources>

</Application>
